#! -*- coding:UTF-8 -*-
import re

a = '王佳琳'
print '字符串a=', a
print '长度=', len(a.decode('utf8'))
print 'a[:1]=', a[:1]
a1 = a.decode('utf8')
print '字符串a1=', a1
print 'a1[:1]=', a1[:1]

b = '王·林'
print '字符串b=', b
print '匹配結果：', re.search('·', b)
print 'decode匹配結果：', re.search('·', b.decode('utf8'))
